package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单详情对象 order_items
 * 
 * @author codernight
 * @date 2025-03-14
 */
public class OrderItems extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    @Excel(name = "商品名称")
    private String productName;

    @Excel(name = "商品图片")
    private String productPic;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private Long orderType;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Integer quantity;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal price;

    /** 小计金额 */
    @Excel(name = "小计金额")
    private BigDecimal subtotal;

    @Excel(name = "is_delete")
    private Integer isDelete;


    public OrderItems() {
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return orderId
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * 设置
     * @param orderId
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取
     * @return productId
     */
    public Long getProductId() {
        return productId;
    }

    /**
     * 设置
     * @param productId
     */
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * 获取
     * @return productName
     */
    public String getProductName() {
        return productName;
    }

    /**
     * 设置
     * @param productName
     */
    public void setProductName(String productName) {
        this.productName = productName;
    }

    /**
     * 获取
     * @return productPic
     */
    public String getProductPic() {
        return productPic;
    }

    /**
     * 设置
     * @param productPic
     */
    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }

    /**
     * 获取
     * @return orderType
     */
    public Long getOrderType() {
        return orderType;
    }

    /**
     * 设置
     * @param orderType
     */
    public void setOrderType(Long orderType) {
        this.orderType = orderType;
    }

    /**
     * 获取
     * @return quantity
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return subtotal
     */
    public BigDecimal getSubtotal() {
        return subtotal;
    }

    /**
     * 设置
     * @param subtotal
     */
    public void setSubtotal(BigDecimal subtotal) {
        this.subtotal = subtotal;
    }

    /**
     * 获取
     * @return isDelete
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 设置
     * @param isDelete
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String toString() {
        return "OrderItems{serialVersionUID = " + serialVersionUID + ", id = " + id + ", orderId = " + orderId + ", productId = " + productId + ", productName = " + productName + ", productPic = " + productPic + ", orderType = " + orderType + ", quantity = " + quantity + ", price = " + price + ", subtotal = " + subtotal + ", isDelete = " + isDelete + "}";
    }
}
